set(SOURCE_DIR ${PROJECT_ROOT}/driver/interrupt)
set(HEADER_DIR ${PROJECT_ROOT}/include/driver)

qelib_include_directories(${HEADER_DIR})

qelib_sources(
    ${SOURCE_DIR}/interrupt.c)

set(INSTALL_HEADERS
    ${HEADER_DIR}/qe_interrupt.h)

# Xilinx AXI INTC
qelib_sources_ifdef(CONFIG_AXI_INTC ${SOURCE_DIR}/axi_intc.c)

install(FILES ${INSTALL_HEADERS} DESTINATION ${QELIB_INSTALL_PATH}/include/driver)